import request from '@/utils/request'

export function getTemplateList(query) {
  return request({
    url: '/messenger/template/getList',
    method: 'post',
    data: query
  })
}

export function getTemplateDetail(data) {
  return request({
    url: '/messenger/template/getDetail',
    method: 'post',
    data: data
  })
}

export function removeTemplateByID(data) {
  return request({
    url: '/messenger/template/delete',
    method: 'post',
    data: data
  })
}
export function changeTemplateStatusByID(data) {
  return request({
    url: '/messenger/template/change-status',
    method: 'post',
    data: data
  })
}

export function saveTemplate(data) {
  return request({
    url: '/messenger/template/save',
    method: 'post',
    data
  })
}